package cn.iinda.electronicInfo.controller;

import cn.iinda.electronicInfo.model.ElectronicFilmResult;
import cn.iinda.electronicInfo.service.ElectronicInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version V3.0
 * @Title: TestController
 * @Company: 成都影达科技有限公司
 * @Description: 描述
 * @author: 东进
 * @date 2018-01-26 10:01
 */
@RestController
public class TestController {

    @Autowired
    private ElectronicInfoService electronicInfoService;

    @GetMapping("test/{name}")
    public ElectronicFilmResult test(@PathVariable String name){
        ElectronicFilmResult result = electronicInfoService.findByPatientName(name);
        return result;
    }
}
